<?php

namespace App\Api\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class SfExpressTemplateModel extends Model
{
    use HasFactory;
    
    protected $table = 'sf_express_templates';
    protected $primaryKey = 'id';
    public $timestamps = false;
    static public function addDbExpressTemplate($data){
         
        return SfExpressTemplateModel::insertGetId($data);
    }
    
    static public function updDbExpressTemplate($condition,$data){
    
        return SfExpressTemplateModel::where($condition)->update($data);
    }
    
    static public function getDbExpressTemplateInfo($condition){
    
        return SfExpressTemplateModel::where($condition)->first();
    }
}
